package cn.com.blueInfo.HaiYuan.business.purchase.service;

import cn.com.blueInfo.utils.result.BootstrapTable;
import cn.com.blueInfo.utils.result.ResultInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 采购单明细行服务接口
 * @ClassName: PurchaseDetailService
 * @author suxch
 * @date 2020年11月7日  下午2:32:35
 */
public interface PurchaseDetailService {

    /**
     * 分页查询采购单明细行数据
     * @Title: queryPurchaseDetailDataByPage
     * @param request
     * @return BootstrapTable
     * @throws
     */
    BootstrapTable queryPurchaseDetailDataByPage(HttpServletRequest request);

    /**
     * 查询采购单明细行数据
     * @Title: queryPurchaseDetailData
     * @param request
     * @return ResultInfo
     * @throws
     */
    ResultInfo queryPurchaseDetailData(HttpServletRequest request);

    /**
     * 新增采购单明细行数据
     * @Title: insertPurchaseDetailData
     * @param request
     * @return ResultInfo
     * @throws
     */
    ResultInfo insertPurchaseDetailData(HttpServletRequest request);

    /**
     * 更新采购单明细行数据
     * @Title: updatePurchaseDetailData
     * @param request
     * @return ResultInfo
     * @throws
     */
    ResultInfo updatePurchaseDetailData(HttpServletRequest request);

    /**
     * 删除采购单明细行数据
     * @Title: deletePurchaseDetailData
     * @param request
     * @return ResultInfo
     * @throws
     */
    ResultInfo deletePurchaseDetailData(HttpServletRequest request);

    /**
     * 下载导入Excel模板
     * @Title: importExcelModel
     * @param request
     * @param response
     * @return void
     * @throws
     */
    void importExcelModel(HttpServletRequest request, HttpServletResponse response);

    /**
     * 导入明细行数据
     * @Title: importDetailData
     * @param request
     * @param file
     * @return ResultInfo
     * @throws
     */
    ResultInfo importDetailData(HttpServletRequest request, MultipartFile file);

}
